import 'package:flutter/material.dart';
import 'package:mpflutter_template/demo/color_constant.dart';
import 'package:mpflutter_template/demo/icon_config_default.dart';

class QuerySendWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
      width: 150,
      height: 120,
      child: ListView.builder(
          itemCount: 5,
          itemExtent: 120,
          scrollDirection: Axis.horizontal,
          itemBuilder: (context, index) {
            return Container(
              width: 150,
              height: 120,
              child: Column(
                children: [
                  Container(
                    width: 130,
                    height: 40,
                    child: Row(
                      mainAxisAlignment: MainAxisAlignment.spaceBetween,
                      children: [
                        Row(
                          mainAxisAlignment: MainAxisAlignment.start,
                          children: [
                            Text("顺丰 SF20596728573654",style: TextStyle(
                                fontSize: 12,
                                fontWeight: FontWeight.w500,
                                color: ColorConstant.ff666666
                            ),),
                            Container(
                              margin: const EdgeInsets.only(left: 8),
                              child: Text("复制",style: TextStyle(
                                  fontSize: 12,
                                  fontWeight: FontWeight.w500,
                                  color: ColorConstant.ff333333
                              ),),
                            )
                          ],
                        ),
                        Container(
                          margin: const EdgeInsets.only(right: 8),
                          child: Row(
                            children: [
                              Container(
                                width: 30,
                                height: 16,
                                margin: const EdgeInsets.only(right: 3),
                                decoration: BoxDecoration(
                                    borderRadius: BorderRadius.circular(2),
                                    border: Border.all(color: ColorConstant.ff85cf26,width: 1)
                                ),
                                child: Text("待取返件",style: TextStyle(
                                    fontSize: 10,
                                    fontWeight: FontWeight.bold,
                                    color: ColorConstant.ff85cf26
                                ),),
                              ),

                            ],
                          ),
                        )
                      ],
                    ),
                  ),
                  Container(
                    width: 130,
                    height: 100,
                    child: Column(
                      children: [
                        Row(
                          mainAxisAlignment: MainAxisAlignment.spaceEvenly,
                          children: [
                            Text("深圳市",style: TextStyle(
                                fontSize: 12,
                                fontWeight: FontWeight.w500,
                                color: ColorConstant.ff666666
                            ),),
                            Text("武汉市",style: TextStyle(
                                fontSize: 12,
                                fontWeight: FontWeight.w500,
                                color: ColorConstant.ff666666
                            ),)
                          ],
                        ),
                        Row(
                          mainAxisAlignment: MainAxisAlignment.spaceEvenly,
                          children: [
                            Text("寄件人",style: TextStyle(
                                fontSize: 12,
                                fontWeight: FontWeight.w500,
                                color: ColorConstant.ff666666
                            ),),
                            Text("收件人",style: TextStyle(
                                fontSize: 12,
                                fontWeight: FontWeight.w500,
                                color: ColorConstant.ff666666
                            ),)
                          ],
                        ),
                        Row(
                          mainAxisAlignment: MainAxisAlignment.start,
                          children: [
                            Text("柜机寄件",style: TextStyle(
                                fontSize: 12,
                                fontWeight: FontWeight.w500,
                                color: ColorConstant.ff79c621
                            ),),
                            Container(
                              width: 1,
                              height: 12,
                              color: ColorConstant.ffcccccc,
                              margin: const EdgeInsets.only(left: 8,right: 8),
                            ),
                            Text("寄件码",style: TextStyle(
                                fontSize: 12,
                                fontWeight: FontWeight.w500,
                                color: ColorConstant.ff79c621
                            ),),
                            Text("1924 2918",style: TextStyle(
                                fontSize: 14,
                                fontWeight: FontWeight.bold,
                                color: ColorConstant.ff79c621
                            ),),
                            Container(
                                width: 1,
                                height: 12,
                                color: ColorConstant.ffcccccc,
                                margin: const EdgeInsets.only(left: 8,right: 8)
                            ),
                            Text("复制",style: TextStyle(
                                fontSize: 12,
                                fontWeight: FontWeight.w500,
                                color: ColorConstant.ff333333
                            ),)
                          ],
                        )
                      ],
                    ),
                  ),
                  Container(
                    width: 130,
                    height: 56,
                    child: Row(
                      mainAxisAlignment: MainAxisAlignment.spaceEvenly,
                      children: [
                        Text("订单已审核通过，请尽快支付",
                          style: TextStyle(
                              fontWeight: FontWeight.w500,
                              fontSize: 12,
                              color: ColorConstant.fff97b3c
                          ),),
                        Container(
                          width: 80,
                          height: 32,
                          decoration: BoxDecoration(
                              borderRadius: BorderRadius.circular(4),
                              gradient: LinearGradient(
                                  stops: [0.0,1.0],
                                  colors: [ColorConstant.ff85cf25,ColorConstant.ff98d933]
                              )
                          ),
                          alignment: Alignment.center,
                          child: Text("立即支付",
                            style: TextStyle(
                                fontWeight: FontWeight.w500,
                                fontSize: 14,
                                color: ColorConstant.white
                            ),),
                        )
                      ],
                    ),
                  )
                ],
              )
              ,
            );
          }),
    );
  }
}
